package com.heying.springcore.aop.jdbc.entity;

import java.util.Date;
import java.util.List;

public class StudentInfo {

    private String stuno;

    private String stuname;

    private Date stubirth;

    private Integer stusex;

    private String stuaddr;

    private String stutel;

    private List<ClassInfo> classInfos;

    public StudentInfo(String stuno, String stuname, Date stubirth, Integer stusex, String stuaddr, String stutel, List<ClassInfo> classInfos) {
        this.stuno = stuno;
        this.stuname = stuname;
        this.stubirth = stubirth;
        this.stusex = stusex;
        this.stuaddr = stuaddr;
        this.stutel = stutel;
        this.classInfos = classInfos;
    }

    public StudentInfo(String stuno, String stuname, Date stubirth, Integer stusex, String stuaddr, String stutel) {
        this.stuno = stuno;
        this.stuname = stuname;
        this.stubirth = stubirth;
        this.stusex = stusex;
        this.stuaddr = stuaddr;
        this.stutel = stutel;
    }

    public StudentInfo() {
    }

    public String getStuno() {
        return stuno;
    }

    public void setStuno(String stuno) {
        this.stuno = stuno;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public Date getStubirth() {
        return stubirth;
    }

    public void setStubirth(Date stubirth) {
        this.stubirth = stubirth;
    }

    public Integer getStusex() {
        return stusex;
    }

    public void setStusex(Integer stusex) {
        this.stusex = stusex;
    }

    public String getStuaddr() {
        return stuaddr;
    }

    public void setStuaddr(String stuaddr) {
        this.stuaddr = stuaddr;
    }

    public String getStutel() {
        return stutel;
    }

    public void setStutel(String stutel) {
        this.stutel = stutel;
    }

    @Override
    public String toString() {
        return "StudentInfo{" +
                "stuno='" + stuno + '\'' +
                ", stuname='" + stuname + '\'' +
                ", stubirth=" + stubirth +
                ", stusex=" + stusex +
                ", stuaddr='" + stuaddr + '\'' +
                ", stutel='" + stutel + '\'' +
                ", classInfos=" + classInfos +
                '}';
    }
}
